/*
 * deinit_lhdfs - deinit the lhdfs
 */
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <glib.h>
#include "hlfs.h"
#include "comm_define.h"
#include "storage.h"
#include "storage_helper.h"

int deinit_hlfs(struct hlfs_ctrl * ctrl)
{
    if(0!=deinit_storage_handler(ctrl->storage)){
       return -1; 
    }
    g_free(ctrl);
    return 0;
} 
